#include "application.h"


Application *__app = NULL;


Application::Application(int argc, char **argv) :
    QApplication(argc,argv)
{
    __app = this;
}

Application::~Application()
{
}

int Application::executer()
{
    return exec();
}

Application *app()
{
    return __app;
}

void Application::empilerDialogueChoixFilm(film *f)
{
    //stack->addWidget(dial);
//    int ret = 0;
//    lPileDialogue.append(dial);
//    if(lPileDialogue.count()==1)
//    {
//        ret = dial->exec();
//        lPileDialogue.removeOne(dial);
//        return ret;
//    }
//    else
//    {
//        QEventLoop eventLoop;
//        this->connect(lPileDialogue.at(lPileDialogue.count()-1), SIGNAL(destroyed()), &eventLoop, SLOT(quit()));
//        eventLoop.exec();
//        ret = dial->exec();
//    }
//    lPileDialogue.removeOne(dial);
//    return ret;
}

void Application::executerDialogueChoixFilm()
{
}
